package leetcode_ago.LinearList.double_link;

public class DoubleLinkedTest {
    public static void main(String[] args) {
        DoubleLinkedList doubleLinkedList=new DoubleLinkedList();
        doubleLinkedList.addLast(5);
        doubleLinkedList.addFirst(1);
        doubleLinkedList.indexAdd(1,3);
        doubleLinkedList.addLast(9);
        System.out.println(doubleLinkedList);
        Boolean res=doubleLinkedList.contains(10);
        System.out.println(res);
        int a=doubleLinkedList.get(2);
        System.out.println(a);
        int b=doubleLinkedList.set(3,7);
        System.out.println(b);
        System.out.println(doubleLinkedList);
//        doubleLinkedList.removeFirst();
//        doubleLinkedList.removeLast();
        doubleLinkedList.addLast(5);
        doubleLinkedList.removeValAll(5);
        System.out.println(doubleLinkedList);
    }
}
